package com.braveman.im.ui.adapter;


import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;
import android.widget.ImageView;

import com.braveman.im.R;
import com.braveman.im.bean.DataListBean;
import com.braveman.im.bean.NoticeBean;
import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.qmuiteam.qmui.widget.QMUIRadiusImageView;

import java.util.List;

public class NoticeAdapter extends BaseQuickAdapter<DataListBean, BaseViewHolder> {
    private QMUIRadiusImageView qmuiRadiusImageView;
    public NoticeAdapter(@LayoutRes int layoutResId, @Nullable List<DataListBean> data) {
        super(R.layout.item_notice_details, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, DataListBean item) {
        qmuiRadiusImageView = helper.getView(R.id.iv_item_company_check_head_icon);
        qmuiRadiusImageView.setCircle(false);
        helper.setText(R.id.iv_item_company_check_info, item.subject);
        helper.setText(R.id.iv_item_company_check_time, item.detail);
        helper.setText(R.id.iv_item_company_check_agree, item.publishTime);
        Glide.with(mContext).load(item.groupManagerAvatar).into(qmuiRadiusImageView);
    }
}
